package entity;

public class Comment {
	private Integer id;
	private Integer productId;
	private String username;
	private String comment;
	private String pic1;
	private Integer type;
	private String createTime;
	private String updateTime;
		
	public Comment() {

	}
	/*更新*/	
	public Comment(Integer id, String comment, String pic1, String updateTime) {
		super();
		this.id = id;
		this.comment = comment;
		this.pic1 = pic1;
		this.updateTime = updateTime;
	}
	/*添加*/
	public Comment(Integer productId, String username, String comment, String pic1,Integer type, String createTime,
			String updateTime) {
		super();
		this.productId = productId;
		this.username = username;
		this.comment = comment;
		this.pic1 = pic1;
		this.type=type;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public String getPic1() {
		return pic1;
	}
	public void setPic1(String pic1) {
		this.pic1 = pic1;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	@Override
	public String toString() {
		return "Comment [id=" + id + ", productId=" + productId + ", username=" + username + ", comment=" + comment
				+ ", pic1=" + pic1 + ", type=" + type + ", createTime=" + createTime + ", updateTime=" + updateTime
				+ "]";
	}
	
	

}
